
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
    <form action="StudentServlet" method="post">
        <input type="hidden" name="sId" value="${stu.sId}"> <br>
        <input type="text" name="sName" value="${stu.sName}"> <br>
        <input type="date" name="birth" value="${stu.birth}"> <br>

        <label>
            <input type="radio" name="gender" value="男" ${stu.gender == '男' ? 'checked' : ''}> 男
        </label>
        <label>
            <input type="radio" name="gender" value="女" ${stu.gender == '女' ? 'checked' : ''}> 女
        </label>
        <br>
        <select name="cId">
            <option value="${stu.clazzId}">${stu.clazz.cName}</option>
            <c:forEach items="${clazzList}" var="clazz">
                <option value="${clazz.cId}">${clazz.cName}</option>
            </c:forEach>
        </select>

        <input type="submit" value="提交">
    </form>
</body>
</html>